package BJHZRZ.User;

public class Md5
{
	public static String getOf(String myString)
	{
		MD5 md5 = new MD5CryptoServiceProvider();
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: byte[] fromData = System.Text.Encoding.Unicode.GetBytes(myString);
		byte[] fromData = System.Text.Encoding.Unicode.GetBytes(myString);
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: byte[] targetData = md5.ComputeHash(fromData);
		byte[] targetData = md5.ComputeHash(fromData);
		String byte2String = null;

		for (int i = 0; i < targetData.length; i++)
		{
			byte2String += String.format("%x", targetData[i]);
		}
		return byte2String;
	}
}